package core;
import java.io.Serializable;
import java.util.Vector;

public class Codex implements Serializable
{
	private static final long serialVersionUID = -3483214423695756881L;

	/**
	 * Name of the army.
	 */
	private String name;

	/**
	 * List of all units in army.
	 */
	private Vector<Unit> units;

	public Codex(String name, Vector<Unit> units)
	{
		this.name = name;
		this.units = units;
	}

	public Codex()
	{
		this(null, null);
	}

	public String getName()
	{
		return name;
	}

	public Vector<Unit> getUnits()
	{
		return units;
	}

	/**
	 * toString method for testing purposes.
	 */
	public String toString()
	{
		return name + ": Unit Count = " + units.size();
	}

}
